using Abp.Dependency;
using MongoDB.Driver;

namespace Batman.Jianbei.Forum.Factories
{
    public class MongoClientFactory
    {
        public static readonly string DB_Name = "admin";
        
        public static IMongoDatabase GetDatabase()
        {
            var client = IocManager.Instance.Resolve<MongoClient>();
            return client.GetDatabase(DB_Name);
        }
    }
}